﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExpenseSystem.Common;
using ExpenseSystem.Common.BaseModel;
using ExpenseSystem.DataUpdater;
using ExpenseSystem.Fether;
using ExpenseSystem.Model;
using ExpenseSystem.Core.DataAddOn;
using System.Web;

namespace ExpenseSystem.Core.ProductionModules
{
    public abstract class SuiteDetailManager : INormalManager<SuiteDetailModel>
    {
        protected string tran = HttpContext.Current.Items[Definition.SESSION_TRAN_STR].ToString();

        protected SuiteDetailManager()
        {
            profile = Authority.Authority.GetUserProfile();
        }

        protected UserProfile profile;
        public static SuiteDetailManager CreateInstance()
        {
            return new SuiteDetailBaseManager();
        }
        protected NormalDataUpdater<SuiteDetailModel> SuiteDetailUpdater = new SuiteDetailUpdaterRegister().GetSuiteDetailUpdater();

        public abstract bool Delete( SuiteDetailModel SuiteDetail, out string message);
        public abstract bool DeleteById( long[] SuiteDetailId, out string message);
        public abstract bool Save(SuiteDetailModel SuiteDetail, out string message, params IAddable<SuiteDetailModel>[] addables);
    }
}
